<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'IndexController@index')->name('index');

Route::group([
    'prefix'     => 'sesame',
    'namespace'  => 'Sesame',
    'middleware' => 'check.sesame',
], function (\Illuminate\Routing\Router $router) {
    $router->group(['prefix' => 'sync',], function (\Illuminate\Routing\Router $router) {
        $router->get('patent', 'SyncApiController@index');
        $router->post('patent', 'SyncApiController@updateBatch');
    });
});

Route::get('/abc', function () {

});
//Route::get('/bc', 'WordController@index');

